<template>
  <div id="app">
    <el-container>
      <el-header>Vue+ElementUI整合开发</el-header>
      <el-container>
        <el-aside width="200px">
          <el-menu
              default-active="2"
              router
              class="el-menu-vertical-demo"
              background-color="#545c64"
              text-color="#fff"
              active-text-color="#ffd04b">
            <el-submenu index="1">
              <template slot="title">
                <i class="el-icon-s-custom"></i>
                <span>学生管理</span>
              </template>
              <el-menu-item :index="'/student/list'">
                <i class="el-icon-s-grid"></i>
                <span>学生列表</span>
              </el-menu-item>
            </el-submenu>

          </el-menu>
        </el-aside>
        <el-main>
          <router-view/>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<style>
*{
  padding:0;
  margin:0;
}
.el-menu-item{
  margin-left: 15px;
}
.el-header, .el-footer {
  background-color: #545c64;
  color: white;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: #D3DCE6;
  color: #333;
  text-align: center;
  height:800px;
}

.el-main {
  background-color: #E9EEF3;
  color: #333;
  text-align: center;
  line-height: 30px;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
</style>
<script setup lang="ts">
</script>
